src: Drop unused argument "value" from ot_parse_boolean
authorGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 6 Mar 2015 11:53:43 +0000 (12:53 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Fri, 6 Mar 2015 17:45:38 +0000 (18:45 +0100)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libotutil/ot-tool-util.c
src/libotutil/ot-tool-util.h
src/ostree/ot-builtin-checkout.c
src/ostree/ot-builtin-commit.c

index 57e0d0c0fc41e2703a7d8dff47aefafd86bfbe0b..95b2e061b4e21c2104c86640047f996f2b4a2353 100644 (file)
@@ -25,8 +25,7 @@
 #include "ot-tool-util.h"
 
 gboolean
-ot_parse_boolean (const char  *option_name,
-                  const char  *value,
+ot_parse_boolean (const char  *value,
                   gboolean    *out_parsed,
                   GError     **error)
 {
index 74d69ce0e6619ba02b6e05233369f4ec2236cebc..7d31817318e9c648f044984e9913b46037faa876 100644 (file)
@@ -25,8 +25,7 @@
 G_BEGIN_DECLS
 
 gboolean
-ot_parse_boolean (const char  *option_name,
-                  const char  *value,
+ot_parse_boolean (const char  *value,
                   gboolean    *out_parsed,
                   GError     **error);
 gboolean
index b6d150abd20706196a2b43b0915bf6528066afed..39d9afcecb5a3aee3d57a8a17d6199f3139da848 100644 (file)
@@ -47,7 +47,7 @@ parse_fsync_cb (const char  *option_name,
 {
   gboolean val;
 
-  if (!ot_parse_boolean (option_name, value, &val, error))
+  if (!ot_parse_boolean (value, &val, error))
     return FALSE;
     
   opt_disable_fsync = !val;
index 79ee77c39655c32232ab05b408e3e02c84777740..cfe48a425b15a5aca9eb142313e1d791eab0bccd 100644 (file)
@@ -58,7 +58,7 @@ parse_fsync_cb (const char  *option_name,
 {
   gboolean val;
 
-  if (!ot_parse_boolean (option_name, value, &val, error))
+  if (!ot_parse_boolean (value, &val, error))
     return FALSE;
     
   opt_disable_fsync = !val;